﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Zhao.Models.Entity
{
    /// <summary>
    /// 正式球馆表（已入驻商户）
    ///</summary>
    [SugarTable("Venues")]
    public class Venues
    {
        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "VenueID", IsPrimaryKey = true)]
        public Guid VenueID { get; set; }

        /// <summary>
        /// 备  注:球馆正式名称（与营业执照一致）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "VenueName")]
        public string VenueName { get; set; } = null!;

        /// <summary>
        /// 备  注:实际经营地址
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Address")]
        public string Address { get; set; } = null!;

        /// <summary>
        /// 备  注:营业执照图片
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Images")]
        public string Images { get; set; } = null!;

        /// <summary>
        /// 备  注:客服电话（对外展示）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "ContactPhone")]
        public string? ContactPhone { get; set; } = null!;

        /// <summary>
        /// 备  注:球馆详情（包含设施介绍等）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Description")]
        public string? Description { get; set; }

        /// <summary>
        /// 备  注:软删除标记（1-正常营业，3-已下线）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "IsDeleted")]
        public short IsDeleted { get; set; }

        /// <summary>
        /// 备  注:入驻通过时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "CreatedAt")]
        public DateTime? CreatedAt { get; set; }

        /// <summary>
        /// 备  注:最后信息修改时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "UpdatedAt")]
        public DateTime? UpdatedAt { get; set; }
        /// <summary>
        /// 备  注:营业时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "OpenTime")]
        public TimeSpan OpenTime { get; set; }
        /// <summary>
        /// 备  注:截至营业时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "CloseTime")]
        public TimeSpan CloseTime { get; set; }
        /// <summary>
        /// 备  注:球馆联系电话
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Phone")]
        public string Phone {  get; set; }
        /// <summary>
        /// 备  注:球馆负责人名称
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "ManagerName")]
        public string ManagerName { get; set; }
        /// <summary>
        /// 省
        /// </summary>
        [SugarColumn(ColumnName = "Province")]
        public int Province { get; set; }
        /// <summary>
        /// 市
        /// </summary>
        [SugarColumn(ColumnName = "City")]
        public int City { get; set; }
        /// <summary>
        /// 区
        /// </summary>
        [SugarColumn(ColumnName = "Zone")]
        public int Zone { get; set; }
        /// <summary>
        /// 备  注:场球预定规则，供微信小程序使用
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "ReservationRules")]
        public string ReservationRules { get; set; }
        /// <summary>
        /// 备  注:可用余额
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Balance")]
        public decimal Balance { get; set; }
        /// <summary>
        /// 备  注:提现密码（MD5直接加密）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "WithdrawPassword")]
        public string WithdrawPassword { get; set; }
        /// <summary>
        /// 备  注:银行卡 (存储密文)
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "BankCard")]
        public string  BankCard { get; set; }
        /// <summary>
        /// 备  注:银行名称
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Bank")]

        public string Bank {  get; set; }
        /// <summary>
        /// 备  注:持卡人名称
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "CardholderName")]
        public string CardholderName { get; set; }
        /// <summary>
        /// 球馆营业执照
        /// </summary>
        [SugarColumn(ColumnName = "License")]
        public string License { get; set; }
    }

}